﻿using System;
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Admin.NET.Core;
namespace Admin.NET.Application.Entity
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("car_color","")]
    [Tenant("1300000000001")]
    public class car_color  : EntityBase
    {
        /// <summary>
        /// 颜色名
        /// </summary>
        [SugarColumn(ColumnDescription = "颜色名", Length = 50)]
        public string? colorName { get; set; }
        /// <summary>
        /// 租户Id
        /// </summary>
        [SugarColumn(ColumnDescription = "租户Id")]
        public long? TenantId { get; set; }
        /// <summary>
        /// 关联-系列id
        /// </summary>
        [SugarColumn(ColumnDescription = "关联-系列id")]
        public long? xilieId { get; set; }
        /// <summary>
        /// 颜色取值
        /// </summary>
        [SugarColumn(ColumnDescription = "颜色取值", Length = 50)]
        public string? colorValue { get; set; }
        /// <summary>
        /// 图地址
        /// </summary>
        [Required]
        [SugarColumn(ColumnDescription = "图地址", Length = 255)]
        public string imgurl { get; set; }
        /// <summary>
        /// 车型id
        /// </summary>
        [Required]
        [SugarColumn(ColumnDescription = "车型id")]
        public long carid { get; set; }
        /// <summary>
        /// 父id
        /// </summary>
        [Required]
        [SugarColumn(ColumnDescription = "父id")]
        public long pid { get; set; }
    }
}